module(name = "compile_pip_requirements_test_from_external_repo")

bazel_dep(name = "rules_python", version = "0.0.0")
local_path_override(
    module_name = "rules_python",
    path = "../../..",
)

python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
    python_version = "3.9",
)

bazel_dep(name = "compile_pip_requirements", version = "0.0.0")
local_path_override(
    module_name = "compile_pip_requirements",
    path = "../compile_pip_requirements",
)

pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
pip.parse(
    hub_name = "pypi",
    python_version = "3.9",
    requirements_lock = "@compile_pip_requirements//:requirements_lock.txt",
)
